import requests



# 页码字典
page_dict = {
    "1":"b97827cc",
    "2": "4ce63706",
    "3":"5crfe930",
    "4": "f3k1d581",
    "5":"ce1d45977",
    "6":"881aaf7b5",
    "7": "eas7a436"
}

headers = {
    "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36",
    "cookie": "0b0d892486c71150129d7ceec34e7f99=f4f20ec44d0c2d3d61260aac8337c321; Hm_lvt_8ccd0ef22095c2eebfe4cd6187dea829=1729747244,1731156222; HMACCOUNT=727BA1F6FD1A51FF; Hm_lpvt_8ccd0ef22095c2eebfe4cd6187dea829=1731157811",
    "referer": "https://ip.ihuan.me",
    "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"
}

for page in range(1, 8):
    value = page_dict[str(page)]
    url = f"https://ip.ihuan.me/?page={value}"
    print(url)
    html = requests.get(url, headers=headers).text

    print(html)

    exit()